﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RuntimeHelloWorlds
{
	public class JurassicJavaScriptHelloWorld
	{
		public void SayHelloWorld()
		{
			var engine = new Jurassic.ScriptEngine();
			engine.SetGlobalFunction("print", new Action<string>(text => Console.WriteLine(text)));
			engine.Evaluate("print('Hello, World! (Jurassic JavaScript)');");
		}
	}
}
